package com.library.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.library.domain.pojo.LendRecord;
import com.library.domain.vo.LendRecordVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LendRecordMapper extends BaseMapper<LendRecord> {
    /**
     * 级联查询借阅记录(三表联查: [lend_record,reader,book])
     */
    List<LendRecordVo> selectAll(@Param("skip") long skip, @Param("size") long size, @Param("username")
            String username,
                                 @Param("bookName") String bookName, @Param("readerId") Long readerId);
}
